<extend name="Public/base"/>

<block name="body">

    <div class="main-title">
        <h2>{$meta_title}</h2>
    </div>
    <form action="" method="post" class="form-horizontal">
        <input type="hidden" name="id" id="id" value="{$data['msg_id']}">

        <div class="form-item">
            <label class="item-label">消息主标题:<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="title" value="{$data['title']}" placeholder="">
            </div>
        </div>

        <div class="form-item">
            <label class="item-label">消息副标题:<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="subtitle" value="{$data['subtitle']}" placeholder="">
            </div>
        </div>
        <div class="form-item" >
            <label class="item-label">消息内容:<span class="check-tips"></span></label>
            <div class="controls">
                <textarea rows="5" cols="20" id="content" class="textarea input-large  kind-editor"  name="content" >{$data['content']}</textarea>
            </div>
        </div>


        <div class="form-item">
            <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
</block>

<block name="script">
    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('Msg / add')}');
    </script>

    <link rel="stylesheet" href="__PUBLIC__/static/kindeditor/default/default.css" />
    <script charset="utf-8" src="__PUBLIC__/static/kindeditor/kindeditor-min.js"></script>
    <script charset="utf-8" src="__PUBLIC__/static/kindeditor/zh_CN.js"></script>

    <script type="text/javascript">

        KindEditor.ready(function (K) {
            window.editor = K.create('textarea[class="kind-editor"]', {
                //allowFileManager : false
                minWidth: 900,
                minHeight: 300,
                afterBlur: function () {
                    this.sync();
                },
            });
        });

    </script>
</block>
